package com.huopaolan.yohuoshop.Adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huopaolan.yohuoshop.Bean.HomeRecommendEntity;
import com.huopaolan.yohuoshop.R;


/**
 * 首页  横向滑动悬停适配器
 */
public class HomeCategoryTabAdapter extends BaseQuickAdapter<HomeRecommendEntity.Category, BaseViewHolder> {


    public HomeCategoryTabAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, HomeRecommendEntity.Category item) {
        helper.setText(R.id.tv_home_recommend_category_name, item.category_name);
        helper.getView(R.id.tv_home_recommend_category_name);
    }
}
